#include <iostream>
using namespace std;

int main()
{
	const char key[] = { 'a','b','c','d','e' };
	char c;
	int ques = 0,numques = 5, numcorrect = 0;
	cout << "Enter the" << numques << "questions tests:" << endl;
	while (cin.get(c))
	{
		if (c != '\n')
		{
			if (c == key[ques])
			{
				numcorrect++;
				cout << " ";
			}
			else
				cout << "*";
		}
		else
		{
			cout << "Score" << float(numcorrect) / numques * 100 << "%";
			ques = 0;
			numcorrect = 0;
			cout << endl;
			continue;
		}
		ques++;
	}
	return 0;
}